import {reactive, ref} from "vue";
export interface TaskForm {
    id:number
    title: string
    description: string
    types: string
    startTime: string
    start: string
    endTime: string
    end: string
    submitUser: string
    checkUser: string
    points: []
    mapCode: string
}
export let currentTaskForm = reactive<TaskForm>({
    id:0,
    title: '',
    description: '',
    types: '',
    startTime: '',
    start:'',
    endTime: '',
    end:'',
    submitUser: '',
    checkUser: '',
    points: [],
    mapCode: '',
})

export let tempTaskAssign = {
    "id": "202406131519",
    "submitUser": "小",
    "checkUser": "小",
    "description": "9999999",
    "endTime": "2024-05-29 09:55:40.000",
    "points": [
        [
            101.63622191526316,
            24.581464507280117
        ],
        [
            101.88469553262645,
            23.47591776029777
        ],
        [
            103.11464012814506,
            24.401347276746122
        ],
        [
            101.63622191526316,
            24.581464507280117
        ]
    ],
    "startTime": "2024-05-28 09:55:40.000",
    "title": "阿达的ddd",
    "types": "空气",
    "mapCode": "123"
}
export let taskVo = {
    id: 202405131515,
    title: "阿达的ddd",
    description: "ssss",
    types: "空气",
    startTime: "2024-05-18T08:56:39.000+00:00",
    endTime: "2024-05-29T09:55:40.000+00:00",
    photos: null,
    points: [
        [
            101.63622191526316,
            24.581464507280117
        ],
        [
            101.88469553262645,
            23.47591776029777
        ],
        [
            103.11464012814506,
            24.401347276746122
        ],
        [
            101.63622191526316,
            24.581464507280117
        ],
        [
            101.63622191526316,
            24.581464507280117
        ]
    ],
    resources: null,
    assignUserId: 1,
    submitUserId: 4,
    checkUserId: 3,
    status: 0,
    checkLevel: 1,
    area: 0.7948530330553965,
    patch: [
        102.2118525253449
    ],
    duration: "0小时",
    checkUserNickname: "小钢",
    submitUserNickname: "小亮"
}
export let currentPoints = reactive([

])

export let defaultPoints=[
    [
        101.63622191526316,
        24.581464507280117
    ],
    [
        101.88469553262645,
        23.47591776029777
    ],
    [
        103.11464012814506,
        24.401347276746122
    ],
    [
        101.63622191526316,
        24.581464507280117
    ]
]
export let taskImage = ""
export let currentPointsNull = ref([])